<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
	.file{
		width: 50px;
		position: relative;
		left: 10px;
	}
</style>
</head>
<body>
<form style="width:300px;height:300px" action="<{:U('Request/uploadPic','type=upload')}>" method="POST" enctype="multipart/form-data">
	
		<span style="color:<{$color}>;font-size:17px;">学号:<{$sid}></span><br><br>
		<input type="file" name="pic" id="upload"/>
		<input type="hidden" name="newSID" value="<{$sid}>"/>
</form>

</body>
</html>
<script>
	if(document.all){
		(document.getElementsByName("pic")[0]).className="file";
	}
	var upload=document.getElementById("upload");
	upload.onchange=function(){
		document.forms[0].submit();
	}
</script>